﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ModelBinder.Controllers;

namespace ModelBinder.Models
{
    public interface IUserBindable
    {
        string Username { get; set; }
        string Email { get; set; }
        Address HomeAddress { get; set; }
    }

    public class User : IUserBindable
    {
        public string Username { get; set; }
        public string Email { get; set; }
        public Address HomeAddress { get; set; }
        public string Password { get; set; }
    }

    public class Address
    {
        public string Country { get; set; }
        public string City { get; set; }
        public string Street { get; set; }
    }

}
